<?php
include './mysql.php';
header("Content-type:text/html; charset=utf=8");

$tag=$_GET['tag'];
$un=$_GET['un'];
$pw=$_GET['pw'];
$username=$_GET['username'];

$mysql=new Mysql();
if($mysql->addItem($username,$un,$pw,$tag)){
	echo json_encode(array(1));
}else{
	echo json_encode(array(0));
}
?>